package com.ljfiction.book.Baner;

import android.graphics.Color;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ljfiction.book.R;
import com.zhy.autolayout.utils.AutoUtils;

import java.util.List;

/**
 * Created by admin on 2017/9/19.
 */

public class HomhotnewListRecycla extends BaseQuickAdapter<BookListListBean.DataBean.ListBean.BooklableListBean, BaseViewHolder> {
    public HomhotnewListRecycla(@LayoutRes int layoutResId, @Nullable List<BookListListBean.DataBean.ListBean.BooklableListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BookListListBean.DataBean.ListBean.BooklableListBean item) {
        AutoUtils.autoSize(helper.itemView);
        helper.setText(R.id.lablebordertext, item.getBookLableName()).setTextColor(R.id.lablebordertext, Color.parseColor(item.getBookColor()));
    }
}
